home *** CD-ROM | disk | FTP | other *** search
/ Erotic Games: Wanda's Race / Erotic Games: Wanda's Race.iso / mac / air_installers / AdobeAIR.exe / setup.swf / scripts / _errorTipStyle.as < prev    next >
Text File  |  2009-02-12  |  1KB  |  44 lines

  1. package
  2. {
  3.    import mx.core.IFlexModuleFactory;
  4.    import mx.styles.CSSStyleDeclaration;
  5.    import mx.styles.StyleManager;
  6.    
  7.    public class _errorTipStyle
  8.    {
  9.        
  10.       
  11.       public function _errorTipStyle()
  12.       {
  13.          super();
  14.       }
  15.       
  16.       public static function init(param1:IFlexModuleFactory) : void
  17.       {
  18.          var fbs:IFlexModuleFactory = param1;
  19.          var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".errorTip");
  20.          if(!style)
  21.          {
  22.             style = new CSSStyleDeclaration();
  23.             StyleManager.setStyleDeclaration(".errorTip",style,false);
  24.          }
  25.          if(style.defaultFactory == null)
  26.          {
  27.             style.defaultFactory = function():void
  28.             {
  29.                this.paddingTop = 4;
  30.                this.borderColor = 13510953;
  31.                this.paddingLeft = 4;
  32.                this.color = 16777215;
  33.                this.fontWeight = "bold";
  34.                this.paddingRight = 4;
  35.                this.shadowColor = 0;
  36.                this.fontSize = 9;
  37.                this.paddingBottom = 4;
  38.                this.borderStyle = "errorTipRight";
  39.             };
  40.          }
  41.       }
  42.    }
  43. }
  44.